import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingQueue;

public class Demo1 {
    public static void main(String[] args) throws InterruptedException {
        BlockingQueue<String> blockingQueue = new LinkedBlockingQueue<>();
        //入队列
       // blockingQueue.put("abc");
        //出队列
        String ele = blockingQueue.take();
        System.out.println(ele);
    }
}
